package model

import (
	"time"
)

type News struct {
	BaseModel   `xorm:"extends"`
	Title       string    `xorm:"not null comment('新闻标题') VARCHAR(50)" json:"title" validate:"required"`
	Content     string    `xorm:"not null comment('新闻内容') VARCHAR(50)" json:"content" validate:"required"`
	Author      string    `xorm:"not null comment('作者') VARCHAR(100)" json:"author" validate:"required"`
	PublishDate time.Time `xorm:"not null comment('出版日期') DATE" json:"publish_date" validate:"required"`
}
